home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_62767.txt < prev    next >
Text File  |  1991-02-27  |  2KB  |  37 lines

  1. -- card: 62767 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. CLASS LIBRARIES
  11.  
  12. A program which uses only the standard I/O functions developed for UNIX systems will be portable between many different platforms, but its poor user interface will be intolerable to most Macintosh users.  Since standard I/O programs usually do not use a Macintosh-style event loop, the non-portable part of Macintosh programs is often quite large.
  13.  
  14. A class library can be used to isolate all the machine-dependent code in a complex application, including the very style of the user interface.  Reliance upon standard- ized class libraries may eventually lead to portability of highly complex applications.
  15.  
  16. The Think Class Library* (TCL) distributed with Think C 4.0 offers an interesting and useful example.  The TCL includes the Application class which implements the usual Macintosh event loop.  The user derives a specialized class for his/her application, overriding certain methods.  In addition to simplifying the notoriously difficult task of writing Macintosh software, this library offers the potential for greater portability of Macintosh applications if/when versions for other platforms are made available.
  17.  
  18.  
  19. -- part contents for background part 7
  20. ----- text -----
  21. 208
  22.  
  23. -- part contents for background part 29
  24. ----- text -----
  25. 22190
  26.  
  27. -- part contents for background part 27
  28. ----- text -----
  29. Think Class Library
  30.  
  31. -- part contents for background part 20
  32. ----- text -----
  33. Think Class Library - p138
  34.  
  35. -- part contents for background part 17
  36. ----- text -----
  37. p3